﻿@model IEnumerable<PNProject.Models.EmailModel>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
    int active = Convert.ToInt16(ViewData["page-active"]);
    int total = (int)(ViewData["page-total"]);
    List<int> listPage = (List<int>)(ViewData["page-list"]);
}

<div class="admin_head">
Danh sách email
</div>

<div class="admin_content">
<div style="color:Red; margin-bottom:10px;">Tổng số email: (@total)</div>

@foreach (var item in Model)
{
<div class="item-div">
<img src="/Images/Base/chimuc.jpg" style="margin-right:10px; margin-bottom:1px;"/>
<a class="item-link" href="#">@item.Email</a>
</div>
}
<hr />
@foreach (var item in listPage)
{
    if (item == active)
    {
    <a class="active_page_link" href="/AdminEmail/index/?p=@item.ToString()"><span>@item.ToString() </span></a>
    }
    else
    {
    <a class="page_link" href="/AdminEmail/index/?p=@item.ToString()"><span>@item.ToString() </span></a>
    }
}
</div>
